/*
 * @Author: scl
 * @Date: 2023-09-16 15:07:45
 * @LastEditTime: 2023-09-16 15:33:56
 * @Description: file content
 */
import { http } from "@/utils/http"
import type { GoodsResult } from "@/types/goods"
/**
 * 商品详情
 * @param id 商品id
 * @returns 
 */
export const getGoodsAPI = (id: string) => {
    return http<GoodsResult>({
        url: "/goods",
        method: "GET",
        data: { id }
    })
}